<?php $form=$this->beginWidget('CActiveForm', array(
              // Please note: When you enable ajax validation, make sure the corresponding
              // controller action is handling ajax validation correctly.
              // There is a call to performAjaxValidation() commented in generated controller code.
              // See class documentation of CActiveForm for details on this.
              'enableAjaxValidation'=>false,
              ));?>
<span>
 <?php echo $form->textField($anuncio,'titulo',array('size'=>40,'maxlength'=>40,'class'=>'form-control','placeholder'=>'Titulo del Anuncio','value'=>$anuncio->titulo)); ?>
</span>
<?php echo $form->hiddenField($anuncio,'anuncio_id',array('size'=>40,'maxlength'=>40,'class'=>'form-control','placeholder'=>'Id','value'=>$anuncio->anuncio_id)); ?>
<span>
<?php echo CHtml::submitButton($anuncio->isNewRecord ? 'Guardar' : 'Guardar', array('class'=>'btn btn-primary btn-xs', 'id'=>'cambionombre')); ?>
<a href="admin"><button type="button" class="btn btn-default btn-xs">Cancelar</button></a>
</span>

<?php $this->endWidget(); ?>